<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
<!--菜单区域-->
<div>
    <a href="#/index">index</a>
</div>
<div>
    <a href="#/det">det</a>
</div>
<!--显示内容区-->
<div id="app"></div>
<script src="./router/router.js"></script>
<script>
  const router = {
    "/index": '<div>index内容</div>',
    "/det": '<div>det内容</div>'
  }
  new Router({
    router,
    templateId: 'app'
  });
</script>
</body>

</html>
